package ztestes;

import java.util.Vector;
import org.apache.xmlrpc.XmlRpcClient;

public class JavaClient {
	public static void main (String [] args) {
		try {
			XmlRpcClient server = new XmlRpcClient("http://localhost:8082");
			Vector params = new Vector();
			params.addElement(new Integer(167));

			Object result = server.execute("sample.is_even", params);
			boolean even = ((Boolean) result).booleanValue();
			System.out.println("167 is even: " + even);

		} catch (Exception exception) {
			System.err.println("JavaClient: " + exception);
		}
	}
}